import Vue from 'vue'
import App from './App'
import router from './router'
import axios from './axios'

Vue.config.productionTip = false;
Vue.prototype.HOST = '/api';//封装跨域接口

//全局过滤器，先定义全局过滤器，再实例化
import filters from './common/filter/filter'
for (let key in filters){
  Vue.filter(key,filters[key]);
}

//引入全部组件
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css';
Vue.use(MintUI)

import '../static/mui/css/mui.css'

import { Toast } from 'mint-ui'
window.Toast=Toast;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  axios,
  render: h => h(App)
})
